#ifndef _CANON_
#define _CANON_

#include "Weapon.h"

#include "hge\hgeresource.h"
#include "hge\hgeparticle.h"

class Canon: public Weapon
{
public:
	Canon(hgeResourceManager* hgeResMan, float x, float y, float _vx, float _vy, float cTime, int playerId);
	~Canon();
	bool update(float dt);
	void setDisable() { toEnd = true;}
	void render();
	static bool cd(float time, int playerId);
private:
	//hgeSprite *in, *ou, *st, *en;
	hgeParticleSystem *inner, *outer, *start, *end;
	static float lastFireList[10];
	float sx, sy, dx, dy;
	float vx, vy;
	float tx, ty;
	float l1, l2;
	bool toEnd;
};

#endif